$server='FIBICH-ACER\SQLEXPRESS';
$db='CensusData';
$schema='ACSSF';
$table='Summary_File_0002';
$outputFile="""$schema"+"_"+"$table.fmt""";

$exe ="bcp";
$FQTN=$db+'.'+$schema+'.'+$table;
$direction='format nul';
$serverNameFlag='-S';
$authenticationFlag='-T';
$formatFlag="-f";
$formatFileType="-c";
$batchFlag="-b";
$fieldTerminatorFlag="-t";
$fieldTerminator=""",""";

$string="$exe $FQTN $direction $formatFileType $formatFlag $outputFile $serverNameFlag $server $authenticationFlag $fieldTerminatorFlag $fieldTerminator";
write-host $string;
invoke-expression $string;